home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15632 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  764 b 

  1. Path: mail2news.demon.co.uk!lorelei.demon.co.uk
  2. From: John Croudy <john@lorelei.demon.co.uk>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: 2D pointer array to class overwritten
  5. Date: Sun, 7 Apr 96 19:28:01 GMT
  6. Organization: home
  7. Message-ID: <9604071928.AA001og@lorelei.demon.co.uk>
  8. References: <4k89ap$7fl@ctylnk.cityu.edu.hk>
  9. X-NNTP-Posting-Host: lorelei.demon.co.uk
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!lorelei.demon.co.uk
  12.  
  13. On 7 Apr 1996 11:35:53 GMT, 92907308@cpccux0.cityu.edu.hk wrote:
  14.  
  15. > cout << "  "<< ptr[i,j];
  16.  
  17. I'm sure I'm not the only one who spotted the [i,j] instead of [i][j].
  18.  
  19. But why doesn't the compiler at least warn about this? I tried and
  20. couldn't get a warning out of GNU.
  21.  
  22. John
  23. xxxx
  24.